local AceGUI = LibStub('AceGUI-3.0')

local frame = AceGUI:Create("Frame") -- 创建框架
frame:SetTitle("Layer") -- 设置框架标题
frame:SetStatusText("位面插件") -- 设置框架状态栏文字
frame:SetCallback("OnClose", function(widget) AceGUI:Release(widget) end) --设置调用
frame:SetLayout("Flow") -- 设置布局
frame:SetWidth(300)
frame:SetHeight(200)
frame.frame:SetMinResize(100, 80)
-- frame:Hide()



local AceAddon = LibStub('AceAddon-3.0'):NewAddon("Layer", "AceConsole-3.0", "AceEvent-3.0")

-- 初始化 插件加载 执行一次
function AceAddon:OnInitialize()
    -- Called when the addon is loaded
    self:Print("插件加载!")
    UIErrorsFrame:AddMessage("插件加载", 1.0, 1.0, 1.0, 5.0)
end


function AceAddon:OnEnable()
    -- self:RegisterEvent("ZONE_CHANGED")
    self:Print("Hello World!")
end


function AceAddon:OnDisable()
    -- Called when the addon is disabled
end